package demo;

import java.net.URLDecoder;

public class Demo {
    public static void main(String[] args) throws Exception {
        String content = "<html><daf>LANG</html>";
        content = content
                .replaceAll(
                        "<([^>]*)(?:lang|LANG|class|CLASS|size|SIZE|face|FACE|[ovwxpOVWXP]:\\w+)=(?:'[^']*'|\"\"[^\"\"]*\"\"|[^>]+)([^>]*)>",
                        "<$1$2>");
        System.out.println(content);
        
        String decode = URLDecoder.decode(content, "UTF-8");
        System.out.println(decode);
    }
}
